package com.tiantian.domain;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 
 * @description 任务信息管理
 * @author ynshun
 * @sincere 2016年1月23日 下午7:04:48
 * @version 1.0
 */
@Entity
@Table(name = "taskinformation")
public class Taskinformation implements java.io.Serializable {
	private static final long serialVersionUID = -7087364830240121432L;

	private String taskId;
	private int storeNo;
	private String businessUserId;
	private int taskNo;
	private Date createTime;
	private String allEntrust;
	private Taskactionplatform platform;
	private Taskterminal terminal;
	private Taskscombinationtype taskGroupTypeId;
	private String taskType;
	private String phoneApp;
	private int taskGroupId;
	private String directTrain;
	private int searchKeywordSortWay;
	private int peopleNumber;
	private Integer selectActiveTaskType;
	private String otherActiveTaskType;
	private int totalOrders;
	private String unifiedOrderMessage;
	private String tipBuyersNotes;
	private BigDecimal additionalEverySingleCommiss;
	private String topTasksMark;
	private Character idleTask;
	private Date undoApplicationTime;
	private String undoApplicant;
	private Character undoStatus;
	private Date taskPublishedTime;
	private String taskStatus;

	@Id
	@Column(name = "TaskID")
	public String getTaskId() {
		return this.taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	@Column(name = "BusinessUserID", nullable = false, length = 9)
	public String getBusinessUserId() {
		return this.businessUserId;
	}

	public void setBusinessUserId(String businessUserId) {
		this.businessUserId = businessUserId;
	}

	@Column(name = "StoreNo", nullable = false)
	public int getStoreNo() {
		return this.storeNo;
	}

	public void setStoreNo(int storeNo) {
		this.storeNo = storeNo;
	}

	@Column(name = "TaskNo", nullable = false)
	public int getTaskNo() {
		return this.taskNo;
	}

	public void setTaskNo(int taskNo) {
		this.taskNo = taskNo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CreateTime", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@ManyToOne
	@JoinColumn(name = "PlatformID")
	public Taskactionplatform getPlatform() {
		return platform;
	}

	/**
	 * @param platform
	 *            the platform to set
	 */
	public void setPlatform(Taskactionplatform platform) {
		this.platform = platform;
	}

	@Column(name = "AllEntrust")
	public String getAllEntrust() {
		return allEntrust;
	}

	public void setAllEntrust(String allEntrust) {
		this.allEntrust = allEntrust;
	}

	@ManyToOne
	@JoinColumn(name = "TerminalID")
	public Taskterminal getTerminal() {
		return terminal;
	}

	@Column(name = "TerminalID", nullable = false)
	public void setTerminal(Taskterminal terminal) {
		this.terminal = terminal;
	}
	@ManyToOne
	@JoinColumn(name = "TaskGroupTypeId")
	
	public Taskscombinationtype getTaskGroupTypeId() {
		return this.taskGroupTypeId;
	}

	public void setTaskGroupTypeId(Taskscombinationtype taskGroupTypeId) {
		this.taskGroupTypeId = taskGroupTypeId;
	}

	
	@Column(name = "TaskTypeID", nullable = false, length = 4)
	public String getTaskType() {
		return taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	@Column(name = "PhoneApp")
	public String getPhoneApp() {
		return phoneApp;
	}

	public void setPhoneApp(String phoneApp) {
		this.phoneApp = phoneApp;
	}

	@Column(name = "TaskGroupID", nullable = false)
	public int getTaskGroupId() {
		return this.taskGroupId;
	}

	public void setTaskGroupId(int taskGroupId) {
		this.taskGroupId = taskGroupId;
	}

	@Column(name = "DirectTrain")
	public String getDirectTrain() {
		return directTrain;
	}

	public void setDirectTrain(String directTrain) {
		this.directTrain = directTrain;
	}

	@Column(name = "SearchKeywordSortWay", nullable = false)
	public int getSearchKeywordSortWay() {
		return this.searchKeywordSortWay;
	}

	public void setSearchKeywordSortWay(int searchKeywordSortWay) {
		this.searchKeywordSortWay = searchKeywordSortWay;
	}

	@Column(name = "PeopleNumber", nullable = false)
	public int getPeopleNumber() {
		return this.peopleNumber;
	}

	public void setPeopleNumber(int peopleNumber) {
		this.peopleNumber = peopleNumber;
	}

	@Column(name = "SelectActiveTaskType")
	public Integer getSelectActiveTaskType() {
		return this.selectActiveTaskType;
	}

	public void setSelectActiveTaskType(Integer selectActiveTaskType) {
		this.selectActiveTaskType = selectActiveTaskType;
	}

	@Column(name = "OtherActiveTaskType", length = 20)
	public String getOtherActiveTaskType() {
		return this.otherActiveTaskType;
	}

	public void setOtherActiveTaskType(String otherActiveTaskType) {
		this.otherActiveTaskType = otherActiveTaskType;
	}

	@Column(name = "TotalOrders", nullable = false)
	public int getTotalOrders() {
		return this.totalOrders;
	}

	public void setTotalOrders(int totalOrders) {
		this.totalOrders = totalOrders;
	}

	@Column(name = "UnifiedOrderMessage", length = 30)
	public String getUnifiedOrderMessage() {
		return this.unifiedOrderMessage;
	}

	public void setUnifiedOrderMessage(String unifiedOrderMessage) {
		this.unifiedOrderMessage = unifiedOrderMessage;
	}

	@Column(name = "TipBuyersNotes", length = 200)
	public String getTipBuyersNotes() {
		return this.tipBuyersNotes;
	}

	public void setTipBuyersNotes(String tipBuyersNotes) {
		this.tipBuyersNotes = tipBuyersNotes;
	}

	@Column(name = "AdditionalEverySingleCommiss", nullable = false, precision = 4)
	public BigDecimal getAdditionalEverySingleCommiss() {
		return this.additionalEverySingleCommiss;
	}

	public void setAdditionalEverySingleCommiss(BigDecimal additionalEverySingleCommiss) {
		this.additionalEverySingleCommiss = additionalEverySingleCommiss;
	}

	@Column(name = "TopTasksMark")
	public String getTopTasksMark() {
		return topTasksMark;
	}

	@Column(name = "TopTasksMark", nullable = false, length = 1)
	public void setTopTasksMark(String topTasksMark) {
		this.topTasksMark = topTasksMark;
	}

	@Column(name = "IdleTask", length = 1)
	public Character getIdleTask() {
		return this.idleTask;
	}

	public void setIdleTask(Character idleTask) {
		this.idleTask = idleTask;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UndoApplicationTime", length = 19)
	public Date getUndoApplicationTime() {
		return this.undoApplicationTime;
	}

	public void setUndoApplicationTime(Date undoApplicationTime) {
		this.undoApplicationTime = undoApplicationTime;
	}

	@Column(name = "UndoApplicant", length = 9)
	public String getUndoApplicant() {
		return this.undoApplicant;
	}

	public void setUndoApplicant(String undoApplicant) {
		this.undoApplicant = undoApplicant;
	}

	@Column(name = "UndoStatus", length = 1)
	public Character getUndoStatus() {
		return this.undoStatus;
	}

	public void setUndoStatus(Character undoStatus) {
		this.undoStatus = undoStatus;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "TaskPublishedTime", length = 19)
	public Date getTaskPublishedTime() {
		return this.taskPublishedTime;
	}

	public void setTaskPublishedTime(Date taskPublishedTime) {
		this.taskPublishedTime = taskPublishedTime;
	}

	@Column(name = "TaskStatus")
	public String getTaskStatus() {
		return taskStatus;
	}

	/**
	 * @param taskStatus
	 *            the taskStatus to set
	 */
	public void setTaskStatus(String taskStatus) {
		this.taskStatus = taskStatus;
	}

}
